package com.stbu;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/test")
public class MyController {

//    @GetMapping("/toWelcome")
    @RequestMapping("/toWelcome")
    public String toWelcomeJsp() {
        return "welcome.jsp";
    }

    @GetMapping("/toParam")
    public String toParam(@RequestParam("u1")  String u1) {
        System.out.println(u1);
        return "home.jsp";
    }
}
